﻿# -*- coding:utf-8 -*-
#
# ГИМ
#
from django.contrib import admin
from shm.models import Department, Employee, Phone


class DepartmentAdmin(admin.ModelAdmin):
    list_display = ('name', 'parent', 'have_child', 'virtual',)
    list_filter = ('have_child', 'virtual',)
    search_fields = ('name',)
    ordering = ('name',)

admin.site.register(Department, DepartmentAdmin)
admin.site.register(Employee)
admin.site.register(Phone)